<!-- src/components/LoadingComponent.vue -->
<template>
  <div v-if="isSpinning">加载中...</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { useLoadingStore } from '@/stores/loading';

export default defineComponent({
  setup() {
    const loadingStore = useLoadingStore();
    return {
      isSpinning: loadingStore.isSpinning,
    };
  }
});
</script>
